//
//  ChatBubbleTableViewCell.h
//  supplyerIOS
//
//  Created by 穆相臣 on 2018/8/30.
//  Copyright © 2018年 UaenaMo. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger,ChatBubbleCellType) {
    ChatBubbleCellTypeText,
    ChatBubbleCellTypeAudio,
    ChatBubbleCellTypeImage
};

@protocol ChatBubbleTableViewCellDelegate <NSObject>

-(void)playAudioWithFile:(NSString *)audio;

-(void)fullScreenImage:(NSString *)image;

@end

@interface ChatBubbleTableViewCell : UITableViewCell

@property(nonatomic,assign)id<ChatBubbleTableViewCellDelegate>delegate;

+(CGFloat)heightWithContentText:(NSString *)text;

+(CGFloat)heightWithSize:(CGSize)size;

+(CGFloat)height;

-(void)loadData:(NSString *)text;

-(void)loadImage:(NSString *)image size:(CGSize)size;

-(void)loadAudio:(NSString *)audio lenght:(NSString *)lenght;

-(void)loadUserData:(NSString *)avatar left:(BOOL)left;

@end
